import {
	observer,
} from 'mobx-react';
import {
	WeaTab
} from 'ecCom';
import Select from './Select';

@observer
export default class Tab extends React.Component {
	constructor(props) {
		super(props);
	}

	render() {
		const {
			store
		} = this.props, {
			TAB,
			tab,
			searchsAd,
			searchsBaseValue,
		} = store;

		const c = <Select store={store}/>;

		return (
			<WeaTab 
				{...TAB}
				{...tab}
				replaceLeft={c}
				searchsAd = {searchsAd}
				searchsBaseValue = {searchsBaseValue}
			/>
		);
	}
}